package electricity.mapper;

import com.github.pagehelper.Page;
import electricity.domain.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import electricity.dto.RoleQueryDto;
import electricity.dto.UserManageQueryDto;
import electricity.vo.RoleManageVO;
import electricity.vo.RoleVO;
import electricity.vo.UserManageVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yang
 * @since 2025-07-14
 */
public interface RoleMapper extends BaseMapper<Role> {

      Integer selectRoleIdByUserId( Integer userId );

      Role selectById(Integer id);

      Page<RoleManageVO> pageQuery(RoleQueryDto roleQueryDto);

      List<RoleVO> selectAllRoles();
}
